import request from '@/utils/request'



/** 采购计划管理*/
//列表
export function procurePlan(params) {
  return request({
    url: '/device/procurePlan/acceptanceCheckList',
    method: 'get',
    params,
  })
}
export function procurePlanList(params) {
  return request({
    url: '/device/procurePlan/list',
    method: 'get',
    params,
  })
}
export function procurePlanListMe(params) {
  return request({
    url: '/device/procurePlan/listToMe',
    method: 'get',
    params,
  })
}
//详情
export function procurePlanDetail(id) {
  return request({
    url: '/device/procurePlan/'+id,
    method: 'get',
  })
}
//删除
export function procurePlanDel(id) {
  return request({
    url: '/device/procurePlan/'+id,
    method: 'delete',
  })
}
//新增
export function procurePlanAdd(data) {
  return request({
    url: '/device/procurePlan/insertPlanVo',
    method: 'post',
    data:data,
  })
}
//编辑
export function procurePlanEdit(params) {
  return request({
    url: '/device/procurePlan/savePlanVo',
    method: 'put',
    data:params,
  })
}
export function procurePlanExport(params) {
  return request({
    url: '/device/procurePlan/export',
    method: 'get',
    data:params
  })
}

/** 设备验收*/
//列表
export function deviceAccept(params) {
  return request({
    url: '/device/deviceAccept/list',
    method: 'get',
    params,
  })
}
//删除
export function deviceAcceptDel(id) {
  return request({
    url: '/device/deviceAccept/'+id,
    method: 'delete',
  })
}
//详情
export function deviceAcceptDetail(id) {
  return request({
    url: '/device/deviceAccept/'+id,
    method: 'get',
  })
}
/** 设备待验收*/
//列表
export function deviceAcceptStay(params) {
  return request({
    url: '/device/deviceAccept/waitAcceptList',
    method: 'get',
    params,
  })
}

//详情
export function deviceAcceptStayDetail(id) {
  return request({
    url: '/device/deviceAccept/'+id,
    method: 'get',
  })
}
//验收类别
export function deviceAcceptType(params) {
  return request({
    url: '/device/acceptTypeApi/list',
    method: 'get',
    params,
  })
}

//采购入库
export function procureDevice(params) {
  return request({
    url: '/device/procureDevice/list',
    method: 'get',
    params,
  })
}
//新增设备入井使用联合验收
export function procureAccAdd(params) {
  return request({
    url: '/device-procurement-acceptance-api',
    method: 'post',
    data:params,
  })
}
//修改设备入井使用联合验收
export function procureAccEdit(params) {
  return request({
    url: '/device-procurement-acceptance-api',
    method: 'put',
    data:params,
  })
}
